package com.yhgarden.bbs.mapper.system;

import com.yhgarden.bbs.entity.system.RoleButton;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author Laijiaxiang
* @since 2019-09-17
*/
public interface RoleButtonMapper  {

    public int create(RoleButton roleButton);

    public int update(RoleButton roleButton);

    public RoleButton getById(@Param("id") String id);

    public RoleButton getByIdForList(@Param("id") String id);

    public RoleButton getByIdMoreDetail(@Param("id") String id);

    public int queryCount(@Param("example") RoleButton roleButton);

    public List<RoleButton> query(@Param("example") RoleButton roleButton,
                                  @Param("order") String order,
                                  @Param("field") String field);

    public List<RoleButton> queryForList(@Param("example") RoleButton roleButton,
                                         @Param("order") String order,
                                         @Param("field") String field);

    public List<RoleButton> queryMoreDetail(@Param("example") RoleButton roleButton,
                                            @Param("order") String order,
                                            @Param("field") String field);

    public int delete(@Param("id") String id);

    public int deleteByExample(@Param("example") RoleButton roleButton);

    public int batchDelete(@Param("ids") List<String> ids);

}

